import React, { useState, useEffect } from 'react'

function App() {
  const [ bannerList, setBannerList] = useState([])
  useEffect(() => {
    fetch('http://121.89.205.189/api/banner/list')
      .then(res => res.json())
      .then(res => {
        setBannerList(res.data)
      })
  }, [])

  const [ proList, setProList ] = useState([])
  useEffect(() => {
    fetch('http://121.89.205.189/api/banner/list')
      .then(res => res.json())
      .then(res => {
        setProList(res.data)
      })
  }, [])
  return (
    <div>
      
    </div>
  )
}

export default App
